package com.java;

import java.util.Scanner;

public class Test3 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        for(int j = 1; j <= 100; j++) {
            int flag = 1;
            for (int i = 2; i <= Math.sqrt(j); i++) {
                if (j % i == 0) {
                    flag = 0;
                    break;
                }
            }
            if (flag == 1) {
                System.out.println(j);
            }
        }
    }
}
